﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WUTOS.DataBase.DataBaseDAL
{
    public class DataBaseInfo
    {

        #region -结构体-存放数据库信息：数据库名及创建时间-
        public struct Database
        {
            public string databasename;
            public string databaseCreateTime;
        };

        #endregion

        #region -私有数据库参数字段-

        private string _datasourse;
        private string _InitialCatalog;
        private string _userID;
        private string _passWord;
        private int _connectTimeout;
        private bool _IntegratedSecurity;

        #endregion

        #region -数据库属性-
        /// <summary>
        /// 数据源
        /// </summary>
        public string DataBaseSourse
        {
            get { return _datasourse; }
            set { _datasourse = value; }
        }

        /// <summary>
        /// 数据库名
        /// </summary>
        public string InitialCatalog
        {
            get { return _InitialCatalog; }
            set { _InitialCatalog = value; }
        }


        /// <summary>
        /// 用户名
        /// </summary>
        public string UserID
        {
            get { return _userID; }
            set { _userID = value; }
        }

        /// <summary>
        /// 密码
        /// </summary>
        public string PassWord
        {
            get { return _passWord; }
            set { _passWord = value; }
        }

        /// <summary>
        /// 是否windows模式登陆
        /// </summary>
        public bool IntegratedSecurity
        {
            get { return _IntegratedSecurity; }
            set { _IntegratedSecurity = value; }
        }
        /// <summary>
        /// 连接超时
        /// </summary>
        public int ConnectTimeout
        {
            get { return _connectTimeout; }
            set { _connectTimeout = value; }
        }
#endregion
        

    }
}
